﻿namespace Bilibili.Model.Bangumi
{
    public sealed class BangumiStat
    {
        public int Danmakus { get; set; }
        public int Favorites { get; set; }
        public int Views { get; set; }
        public string PlayCount
        {
            get
            {
                if (Views > 10000)
                    return ((double)Views / 10000).ToString("0.0" + "万");
                else
                    return Views.ToString();
            }
        }
        public string FavoritesCount
        {
            get
            {
                if (Favorites > 10000)
                    return ((double)Favorites / 10000).ToString("0.0" + "万");
                else
                    return Favorites.ToString();
            }
        }
    }
}